package com.sakiko.test;

import com.sakiko.aop_05.Calculator;
import com.sakiko.config.JavaConfig05;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

// 环绕通知测试
@SpringJUnitConfig(JavaConfig05.class)
public class SpringTest05 {

    @Autowired
    private Calculator calculator;

    @Test
    public void test() {
        System.out.println(calculator.add(1, 1));
    }
}
